home *** CD-ROM | disk | FTP | other *** search
- package java.lang;
-
- public abstract class ClassLoader {
- private boolean initialized = false;
-
- protected ClassLoader() {
- SecurityManager var1 = System.security;
- if (var1 != null) {
- var1.checkCreateClassLoader();
- }
-
- this.init();
- this.initialized = true;
- }
-
- protected abstract Class loadClass(String var1, boolean var2) throws ClassNotFoundException;
-
- protected final Class defineClass(byte[] var1, int var2, int var3) {
- if (!this.initialized) {
- throw new SecurityException("Security Exception: ClassLoader object not initialized.");
- } else {
- return this.defineClass0(var1, var2, var3);
- }
- }
-
- protected final void resolveClass(Class var1) {
- if (!this.initialized) {
- throw new SecurityException("Security Exception: ClassLoader object not initialized.");
- } else {
- this.resolveClass0(var1);
- }
- }
-
- protected final Class findSystemClass(String var1) throws ClassNotFoundException {
- if (!this.initialized) {
- throw new SecurityException("Security Exception: ClassLoader object not initialized.");
- } else {
- return this.findSystemClass0(var1);
- }
- }
-
- private native void init();
-
- private native Class defineClass0(byte[] var1, int var2, int var3);
-
- private native void resolveClass0(Class var1);
-
- private native Class findSystemClass0(String var1) throws ClassNotFoundException;
-
- private void check() {
- if (!this.initialized) {
- throw new SecurityException("Security Exception: ClassLoader object not initialized.");
- }
- }
- }
-